<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>绝对定位-居中</title>
    <style>
        img{
            position: absolute;
            left: 50%;
            top: 50%;


            /* 放便 ；自己的宽高的一半 */
            transform: translate(-50%,-50%);
            /* margin-left: -256px;
            margin-top: -127px; */
        }
    </style>
</head>
<body>
    <img src="./imges/login.webp" alt="">
</body>
</html>